<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./mySpeak.js"></script>
    <style>
        #speakIconBox {
            width: 30px;
            height: 30px;
            background: green;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <input type="text" id="target-input" name="targetInput" placeholder="请输入内容">
    <div id="speakIconBox">

    </div>
    <script>
        window.onload = function() {
            renderSpeakFn({
                targetInputId: 'target-input',
                speakIconId: 'target-input',
                speakResultCallback: function(value) {
                    console.log('speakResultCallback:', value)
                }
            })
        }
    </script>
</body>
</html>